define(["jquery", "easy-admin", "vue"], function ($, ea, Vue) {
    var form = layui.form;
    var Controller = {
        index: function () {
            $('.show-type-item').hide();
            $('.show-type-item.' + upload_type).show();
            form.on("radio(upload_type)", function (data) {
                $('.show-type-item').hide();
                $('.show-type-item.' + this.value).show();
            });

            var element = layui.element;
            var layidData = layui.sessionData('systemConfigTabBrief');
            if (layidData) {
                element.tabChange('systemConfigTabBrief', layidData.layid);
            }

            //监听Tab切换
            element.on('tab(systemConfigTabBrief)', function(data){
                var layid =  this.getAttribute("lay-id");
                layui.sessionData('systemConfigTabBrief', {
                    key: 'layid',
                    value: layid
                });
            });

            ea.listen();
        }
    };
    return Controller;
});